package com.yb.guigu.pick.pay.config;

import com.yb.guigu.pick.core.bean.AlipayConfig;
import com.yb.guigu.pick.core.util.SnowFlake;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/6/30 17:38
 * FileName: AppConfig
 * Description:
 */

@Configuration
@EnableConfigurationProperties(AlipayConfig.class)
public class AppConfig {

    @Bean
    SnowFlake snowFlake(){
        return new SnowFlake(1,2);
    }
}
